//
//  KZTabBar.h
//
//
//  Created by kiefer on 13-11-8.
//  Copyright (c) 2013年 kiefer. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "KZTabBarItem.h"

@protocol KZTabBarDelegate;

@interface KZTabBar : UIView
{
@package
    NSMutableArray *tabBarItemCaches;
    NSUInteger _selectedIndex;
    NSArray *_titles;    
}

@property(nonatomic, assign) id<KZTabBarDelegate> delegate;
@property(nonatomic, retain) NSArray *titles;
@property(nonatomic) NSUInteger selectedIndex;

- (NSUInteger)numberOfItems;

- (KZTabBarItem *)selectedTabBarItem;

- (KZTabBarItem *)tabBarItemWithIndex:(NSUInteger)index;

@end

@protocol KZTabBarDelegate <NSObject>
@optional
- (void)tabBar:(KZTabBar *)tabBar didSelectItem:(KZTabBarItem *)tabBarItem;
@end

